import request from "@/utils/request"
//查询头衔
export function getTitle(page, limit, data) {
    return request({
        url: `/userservice/user-title/getTitle/${page}/${limit}`,
        method: 'POST',
        data
    }).then((res) => res.data);
}

//查询用户使用中头衔
export function getUserInfoById(id) {
    return request({
        url: `/userservice/user-info/getUserInfoById/${id}`,
        method: 'GET',
    }).then((res) => res.data);
}

//用户保存头衔
export function updateTitle(param) {
    return request({
        url: `/userservice/user-title/updateTitleByToken`,
        method: 'POST',
        data:{
            titleIdList:param
        }
    }).then((res) => res.data);
}